Skip to content

feat(checkbox): adds invisible input element to leverage built-in functionality - #415

Merged
jelbourn merged 1 commit into
angular:masterfrom
robertmesserle:fix/250
May 13, 2016
Merged

jelbourn merged 1 commit into
angular:masterfrom
robertmesserle:fix/250

Conversation

@robertmesserle

Copy link
Copy Markdown
Contributor

@googlebot googlebot added cla: yes PR author has agreed to Google's Contributor License Agreement labels May 10, 2016
Comment thread src/components/checkbox/checkbox.html Outdated
[attr.aria-label]="ariaLabel"
[attr.aria-labelledby]="labelId"
[attr.aria-checked]="getAriaChecked()"
[attr.aria-disabled]="disabled"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are aria-checked and aria-disabled necessary for a native checkbox?

@jelbourn jelbourn mentioned this pull request May 12, 2016
4 tasks done
Comment thread src/components/checkbox/checkbox.html Outdated
<div class="md-checkbox-layout">
<label class="md-checkbox-layout">
<div class="md-checkbox-inner-container">
<input #input class="md-checkbox-input" type="checkbox"

@devversion devversion May 13, 2016 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why has the input a local variable? I can't see it used in any other sections

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I don't think this is used any more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, good call - it isn't used anymore.

Refactors checkbox to use native input element

closes #250
@jelbourn

Copy link
Copy Markdown
Contributor

LGTM

@jelbourn
jelbourn merged commit 10ac2be into angular:master May 13, 2016
andrewseguin pushed a commit to andrewseguin/components that referenced this pull request Oct 15, 2018
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes PR author has agreed to Google's Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants